{# Overseer > Deployments > DNS (overseer_deployments.dns_view): the records on the domain at its registrar (by its mark, as Settings shows a provider), each with Edit and Delete behind its menu (Add record is in the header, _dns_actions.html); or why there are none to show. #} {% from "components/macros/layout.html" import card, dropdown, menu_item %} {% from "components/macros/table.html" import data_table %} {% from "pages/overseer/deployments/_macros.html" import goto, mark, note %} {% macro record_actions(row) -%} {% call dropdown(options=True) %} {{ menu_item("Edit", hx_dialog(row.edit_url, "data-write")) }} {{ menu_item("Delete", hx_dialog(row.delete_url, "data-write"), danger=True) }} {% endcall %} {%- endmacro %}
Set the {{ dns.provider.name }} keys in {{ goto(dns.settings_url, "Settings") }} to manage {{ dns.domain }}'s records.
{% elif dns.reason %}{{ dns.reason }}
{% else %} {{ data_table([ {"key": "type", "label": "Type"}, {"key": "host", "label": "Host", "kind": "code"}, {"key": "value", "label": "Value", "kind": "code"}, {"key": "ttl", "label": "TTL"}, {"key": "priority", "label": "Priority"}, ], dns.rows, actions=record_actions, empty="No records yet") }} {% endif %} {% endcall %}